package com.yjd.comm.system.service;

import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.system.dto.OperParamDto;
import com.yjd.comm.system.model.SysParamModel;
import com.yjd.comm.vo.Constant;

/**
 * <b>description</b>：系统菜单业务接口<br>
 * <b>time</b>：2014-11-06 17:18:10 <br>
 * <b>author</b>： lindy lindytem@126.com
 */
public interface ISysParamService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public SysParamModel insert(SysParamModel model, OperParamDto operParamDto)
			throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(SysParamModel model, OperParamDto operParamDto)
			throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param idParam
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idParam, OperParamDto operParamDto) throws Exception;

	/**
	 * 根据key获取系统参数
	 * @param sysParamKeyEnum
	 * @return
	 * @throws Exception
	 */
	public SysParamModel getModelByKey(Constant.SysParamKeyEnum sysParamKeyEnum) throws Exception;

	
	public int updateByMap(Map<Object,Object> param, OperParamDto operParamDto)throws Exception;
}
